/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package MortgageCore;
import simframe.simulation.*;
/**
 *
 * @author karakots
 */
public interface iDepository extends SimActor {
    //
    // iDepository Interface
    //

    // create an account and return the account number
    int openAccount(iDepositor depositor, double amount);

    // Add deposit to depositor's account referenced by account number
    void deposit(int accountNumber, double amount);

    // Add deposit to depositor's account referenced by account number
    double  withdraw(int accountNumber, double amount);

    // return the amount of money in the acount
    double getBalance(int accountNumber);

    // close the acount and return the cash to the depositor
    double closeAccount(int accountNumber);
}
